package com.ticket.sass.common.entity.tenant.enums

import com.baomidou.mybatisplus.annotation.IEnum

enum class OrderType(private val value: Short, val tips: String) : IEnum<Short> {
    TICKET(1, "出票"),
    COMMODITY(2, "卖品"),
    CARD_RECHARGE(3, "会员卡充值"),
    GROUP_PURCHASE_TICKET(4, "拼单影票");

    override fun getValue(): Short {
        return value
    }

    companion object {
        fun valueOf(v: Short) = values().find { it.value == v } ?: error("未匹配到枚举")
    }
}